package com.base.functions;

import jetbrick.template.JetAnnotations.Functions;

@Functions
public class CommonFunctions {
	
	public static int getAgeByName(String name) {
		int age = 0;
		switch(name) {
			case "zhangsan": age = 15;break;
			case "lisi": age = 19;break;
			case "xiaoming": age = 24;break;
		}
		return age;
	}

}
